package cn.lefull.mapper;

import cn.lefull.entity.Apartment;
import com.alibaba.fastjson.JSONArray;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description:
 * @auther: qijiang
 * @date: 2018/12/25 15:19
 */

public interface ApartmentMapper {

    @Select("select a.*,c.organization_id organizationId from apartment a inner join company c on a.company_id = c.company_id ")
    List<Apartment> findAll();
}
